package org.itboys.mobile.entity.mongo;


import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：jiangxiong
 * 日期：2017年4月26日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_移动端（通用）_用户_实体。如果属性不够，请自行填充
 */
@Entity(value="SundayMember", noClassnameStored=true)
public class SundayMember extends BaseMongoEntity {
    //基础属性
    private String userName;//登陆账号。随机生成
    private String nickName;//昵称
    private String mobile;//手机号。用户注册标识
    private String mobileName;//联系电话
    private String address;//地址
    private String email;//电子邮箱
    private Integer userType;//用户类型。根据项目逻辑自行定义。1用户，2门店，3大客户
    private String image;//头像
    private String idCard;//身份证号
    private String desc;//个人简介
    //登录密钥信息
    private String password;//密码。md5加密
    private String weixinUnionId;//微信unionId
    private String qqUnionId;//腾讯QQunionId
    private String weiboUnionId;//新浪微博unionId、
    //支付密钥
    private String weixinOpenId;//微信openId
    private String payPassword;//支付密码.md5加密
    //用户状态
    private int status;//0正常，1冻结

    //其他项目相关
    private Double discount;//大客户折扣。大客户专用
    private Long parentId;//上级用户ID。门店专用
    private String number;//门店编号
    private String cardNo;//会员卡号。同步pos中数据
    private String cartType;//01绿卡，02黑卡
    private Integer isSuper;//是否超级用户。默认null,用户门店统计收益

  //  private BigDecimal score;//用户剩余积分。用户DTO中体现
   // private BigDecimal balance;//用户剩余额。用户DTO中体现


    public SundayMember() {
    }



    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobileName() {
        return mobileName;
    }

    public void setMobileName(String mobileName) {
        this.mobileName = mobileName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getWeixinUnionId() {
        return weixinUnionId;
    }

    public void setWeixinUnionId(String weixinUnionId) {
        this.weixinUnionId = weixinUnionId;
    }

    public String getQqUnionId() {
        return qqUnionId;
    }

    public void setQqUnionId(String qqUnionId) {
        this.qqUnionId = qqUnionId;
    }

    public String getWeiboUnionId() {
        return weiboUnionId;
    }

    public void setWeiboUnionId(String weiboUnionId) {
        this.weiboUnionId = weiboUnionId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getWeixinOpenId() {
        return weixinOpenId;
    }

    public void setWeixinOpenId(String weixinOpenId) {
        this.weixinOpenId = weixinOpenId;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getCartType() {
        return cartType;
    }

    public void setCartType(String cartType) {
        this.cartType = cartType;
    }

    public Integer getIsSuper() {
        return isSuper;
    }

    public void setIsSuper(Integer isSuper) {
        this.isSuper = isSuper;
    }
}
